import {get, post} from '@/request'

export async function _getComics(data, callBack, handle) {
    const path = 'comics'
    await get(path, data).then(callBack).catch(handle)
}

export async function _fav(data, callBack, handle) {
    const path = 'fav'
    await get(path,data).then(callBack).catch(handle)
}

export async function _like(data, callBack, handle) {
    const path = 'like'
    await get(path,data).then(callBack).catch(handle)
}

export async function _getComicInfo(data, callBack, handle) {
    const path = 'comicInfo'
    await get(path,data).then(callBack).catch(handle)
}

export async function _getEpisodes(data, callBack, handle) {
    const path = 'comicEpisodes'
    await get(path,data).then(callBack).catch(handle)
}

export async function _getPicture(data, callBack, handle) {
    const path = 'comicPicture'
    await get(path,data).then(callBack).catch(handle)
}

export async function _getComment(data, callBack, handle) {
    const path = 'comicComment'
    await get(path,data).then(callBack).catch(handle)
}

export async function _getComicSearch(data, callBack, handle) {
    const path = 'comicSearch'
    await post(path,data).then(callBack).catch(handle)
}











